{include file='common/_meta' /}
<body>
<div class="container">

	<form class="layui-form" action="" lay-filter="" id="form-article">
		
		<div class="layui-row">
            <div class="layui-form-item layui-form-text layui-col-sm6">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-block">
                    <textarea name="remarks" placeholder="" class="layui-textarea" >{$info.remarks}</textarea>
                </div>
             </div>
        </div>
		
		<div class="layui-row">
		  	<div class="layui-form-item">
			    <div class="layui-input-block">
			    	<input type="hidden" class="input-text" value="{$info.id}" name="id">
			     	<button class="layui-btn custom-sm-fluid" lay-submit lay-filter="formDemo">提交</button>
			    </div>
		  	</div>
	  	</div>

	</form>

</div>
{include file="common/_footer"}

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
layui.use('form', function() {

	var layer = layui.layer;
	var form  = layui.form;

	//监听提交
	form.on('submit(formDemo)', function(data) {

		$.ajax({
            type : "POST",
            url  : "{:url('Record/remarks_up')}",
            data : $("#form-article").serialize(),
            success : function(e) {

                if(e != 'success') {

                    layer.msg(e,{icon: 5,time:3000});
                    return false;
                }
                layer.msg('编辑成功',{icon:1,time:1000},function(){layer.open({type: 3});parent.location.reload();});
            },
            error : function(e) {

                layer.msg('编辑错误',{icon: 5,time:3000});
            }
        });

		return false;
	});
       
});
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>